POV-Ray : Newsgroups : povray.general : Isosurface functions : Re: Isosurface functions Server Time
5 Aug 2024 12:18:03 EDT (-0400)
  Re: Isosurface functions  
From: Christoph Hormann
Date: 24 Sep 2002 11:04:06
Message: <3D907EE6.6D9AB5C4@gmx.de>
Tom Melly wrote:
> 
> Help please.
> 
> Can anyone suggest functions for:
> 
> A pipe (i.e. a cylinder with a hole running through it and a configurable
> wall-thickness).

http://www-public.tu-bs.de:8080/~y0013390/pov/ic/docu02.html#Cylinder_Hole

> 
> A brain-like effect.

Pardon?

> 
> Also, with a function like:
> (f_hex_x(x,y,z,1) - 2/3)*-1
> how would I go about wrapping this around a sphere? (if such a thing can be
> done).

Sure, the keyword is spherical coordinates, have a look at the f_r(),
f_ph() and f_th() functions in functions.inc.  For a start try something
like:

#declare f_1=function { (f_hex_x(x,y,z,1) - 2/3)*-1 } 

isosurface {                                         
  function { f_1(y, f_th(x, y, z)*5, 0) } 
  contained_by {box {<-5,-5,-5>,<5,5,5>}}    
  pigment { color NeonBlue } 
  finish { specular 0.3 } 
}

Christoph

-- 
POV-Ray tutorials, IsoWood include,                 
TransSkin and more: http://www.tu-bs.de/~y0013390/  
Last updated 13 Aug. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.